package com.forekonw.demo4;

/**
 * 有返回值
 */
public class TestMethod7 {
    public static int asd(int a ) {
        return a;
    }
    public static String sd(String name){
        return name;
    }
    public static int[] df(){
        int[] array = {1,2,3,23,2,5};
        return array;
    }
    public static int[] qw(int[] array){
        return array;
    }


    public static void main(String[] args) {
        int num = TestMethod7.asd(12);
        System.out.println(num);
        String name = TestMethod7.sd("tom");
        System.out.println(name);
        int[] arr = TestMethod7.df();
        for (int i = 0 ;i<arr.length;i++){
            System.out.println(arr[i]);
        }
        int[] a = new int[] {1,2,3,23,2,5};
        int[] b = TestMethod7.qw(a);
        for (int i = 0 ;i<a.length;i++){

            System.out.println(b[i]);
        }


    }
}
